﻿
using SanJ.FreeCare.Peis.Configure.Worker;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace SanJ.FreeCare.Peis
{
    public partial class PeisAppService : FreeCareAppService, IPeisAppService
    {
        public  Task<PagedResultDto<WorkerDto>> GetWorkerLisAsync(GetWorkerInput input)
        {
            //var totalCount = await _appletManager.GetCountAsync(input.FilterText);

            //List<WorkerDto> workerList = new List<WorkerDto>();
            //return new PagedResultDto<WorkerDto>
            //{
            //    TotalCount = totalCount,
            //    Items = workerList
            //};
            throw new NotImplementedException();
        }
        public async Task<WorkerDto> GetWorkerAsync(Guid id)
        {
            //var app = await _appletManager.GetByIdAsync(id);
            //return ToWorkerDto(app);
            throw new NotImplementedException();
        }
        public  Task<WorkerDto> CreateWorkerAsync(WorkerCreateDto input)
        {
            //Applet app = ToAppletAsync(input);
            //var insert = await _appletManager.CreateAsync(app);
            //WorkerDto worker = new WorkerDto();
            //return worker;
            WorkerDto workerDto = new WorkerDto();
            workerDto.Name = "张工";
            return Task.FromResult(workerDto);
        }
        //private WorkerDto ToWorkerDto(Applet app)
        //{
        //    WorkerDto worker = new WorkerDto();
        //    app.Name = worker.Name;
        //    app.SNumber = worker.WorkerId;
        //    return worker;
        //}
        //private Applet ToAppletAsync(WorkerCreateDto input)
        //{
        //    Applet applet = new Applet();
        //    applet.Name = input.Name;
        //    applet.SNumber = input.WorkerId;
        //    return applet;

        //}
    }
}
